Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
Error en JS "Error de tipo no detectado: no se pueden establecer propiedades de nulo (configurando 'innerHTML') en call.html:10:58"

Soy nuevo en JavaScript. Estoy tratando de imprimir una matriz usando una función document.getElementById . Recibo un error Uncaught TypeError: Cannot set properties of null (setting 'innerHTML') at call.html:10:58

 <!DOCTYPE html> <html> <head> <title>My information</title> <body> <h1>My name is Luffy</h1> <p>I am a software developer</p> <script> const programmingLanguage = ["Python", "Java","C"]; document.getElementById("program").innerHTML=programmingLanguage; </script> </body> </head> </html>

por favor ayúdame donde me equivoqué

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El problema es que está tratando de obtener un elemento que tiene el programa de identificación, pero no hay ningún elemento que tenga la identificación como program .

Puede crear un elemento con program id. esto resolverá el error.

 <!DOCTYPE html> <html> <head> <title>My information</title> <body> <h1>My name is Luffy</h1> <p>I am a software developer</p> <p id="program"></p> <script> const programmingLanguage = ["Python", "Java","C"]; document.getElementById("program").innerHTML=programmingLanguage; </script> </body> </head> </html>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!